import request from '@/utils/request'

// 查询appletTeam列表
export function listAppletTeam(query) {
  return request({
    url: '/applet/appletTeam/list',
    method: 'get',
    params: query
  })
}


export function getTeamCharBar() {
  return request({
    url: '/applet/appletTeam/getTeamCharBar',
    method: 'get',
  })
}


export function getTeamSelect() {
  return request({
    url: '/applet/appletTeam/getTeamSelect',
    method: 'get',
  })
}

export function getIndexTopData() {
  return request({
    url: '/applet/appletTeam/getIndexTopData',
    method: 'get',
  })
}

// 查询appletTeam详细
export function getAppletTeam(teamId) {
  return request({
    url: '/applet/appletTeam/' + teamId,
    method: 'get'
  })
}

// 新增appletTeam
export function addAppletTeam(data) {
  return request({
    url: '/applet/appletTeam',
    method: 'post',
    data: data
  })
}

// 修改appletTeam
export function updateAppletTeam(data) {
  return request({
    url: '/applet/appletTeam',
    method: 'put',
    data: data
  })
}

// 删除appletTeam
export function delAppletTeam(teamId) {
  return request({
    url: '/applet/appletTeam/' + teamId,
    method: 'delete'
  })
}
